package com.ruoyi.system.service.car4s_service.car4s_impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.car4s_mapper.Car4sSupplierInfoMapper;
import com.ruoyi.system.domain.car4s_domain.Car4sSupplierInfo;
import com.ruoyi.system.service.car4s_service.ICar4sSupplierInfoService;

/**
 * 供应商信息Service业务层处理
 * 
 * @author LK
 * @date 2024-06-29
 */
@Service
public class Car4sSupplierInfoServiceImpl implements ICar4sSupplierInfoService 
{
    @Autowired
    private Car4sSupplierInfoMapper car4sSupplierInfoMapper;

    /**
     * 查询供应商信息
     * 
     * @param supplierInfoId 供应商信息主键
     * @return 供应商信息
     */
    @Override
    public Car4sSupplierInfo selectCar4sSupplierInfoBySupplierInfoId(Long supplierInfoId)
    {
        return car4sSupplierInfoMapper.selectCar4sSupplierInfoBySupplierInfoId(supplierInfoId);
    }

    /**
     * 查询供应商信息列表
     * 
     * @param car4sSupplierInfo 供应商信息
     * @return 供应商信息
     */
    @Override
    public List<Car4sSupplierInfo> selectCar4sSupplierInfoList(Car4sSupplierInfo car4sSupplierInfo)
    {
        return car4sSupplierInfoMapper.selectCar4sSupplierInfoList(car4sSupplierInfo);
    }

    /**
     * 新增供应商信息
     * 
     * @param car4sSupplierInfo 供应商信息
     * @return 结果
     */
    @Override
    public int insertCar4sSupplierInfo(Car4sSupplierInfo car4sSupplierInfo)
    {
        return car4sSupplierInfoMapper.insertCar4sSupplierInfo(car4sSupplierInfo);
    }

    /**
     * 修改供应商信息
     * 
     * @param car4sSupplierInfo 供应商信息
     * @return 结果
     */
    @Override
    public int updateCar4sSupplierInfo(Car4sSupplierInfo car4sSupplierInfo)
    {
        return car4sSupplierInfoMapper.updateCar4sSupplierInfo(car4sSupplierInfo);
    }

    /**
     * 批量删除供应商信息
     * 
     * @param supplierInfoIds 需要删除的供应商信息主键
     * @return 结果
     */
    @Override
    public int deleteCar4sSupplierInfoBySupplierInfoIds(Long[] supplierInfoIds)
    {
        return car4sSupplierInfoMapper.deleteCar4sSupplierInfoBySupplierInfoIds(supplierInfoIds);
    }

    /**
     * 删除供应商信息信息
     * 
     * @param supplierInfoId 供应商信息主键
     * @return 结果
     */
    @Override
    public int deleteCar4sSupplierInfoBySupplierInfoId(Long supplierInfoId)
    {
        return car4sSupplierInfoMapper.deleteCar4sSupplierInfoBySupplierInfoId(supplierInfoId);
    }
}
